package com.chen.ssm.service;

import com.chen.ssm.entity.Ticketorder;

import java.util.List;

/**
 * com.chen.ssm.service
 * 作者      : 陈晓
 * 描述      :
 * 创建日期  : 2017/12/13
 * 修改日期  :
 */
public interface TicketOrderService {

  int deleteByPrimaryKey(Integer id);

  int insert(Ticketorder record);

  int insertSelective(Ticketorder record);

  int updateByPrimaryKeySelective(Ticketorder record);

  int updateByPrimaryKey(Ticketorder record);

  int getCount(Ticketorder record);

  List<Ticketorder> getList(Ticketorder record);

  /**
   * 根据用户查询用户订单
   * @param userName
   * @return
   */
  List<Ticketorder> getTicketOrderByUserName(String userName);

  Ticketorder selectByPrimaryKey(Integer id);

  List<Ticketorder> selectListByUserId(Integer userId);

  List<Ticketorder> selectListByFlightId(Integer flightId);

}
